using es6-promise for the server side polyfilling