Add IE9 polyfill for btoa function

- Copied from
https://github.com/davidchambers/Base64.js/blob/master/base64.js