Better way to set up promise polyfill.

Perhaps load this in `js/index.js` so it's available everywhere?