[Amazon related change] base64.toArrayBuffer to convert base64 strings
according to https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commit;h=6fde14b81988b1eb118c42f47cbdfbb08d756256