Base64 in JavaScript: btoa, atob, and Buffer Explained