Add IE9 polyfill for btoa function

- Copied from
https://github.com/TristanCavelier/notesntools/blob/master/javascript/base64.js