Encodes the specified string by Base64 method
base64Encode = function(aText);
var encoded = base64Encode('base64'); //encoded = 'YmFzZTY0'