Fix for IE: polyfill promises