Better way to set up promise polyfill.