Update base64_encode.js

a shorter version of the base64_encode function