Base64 encode/decode library in JavaScript with support for browser and Node.js