Restore promises polyfill (fix #323)

Functionality was removed in 8aca77384c932f85148ad56caa892bc318358ed6
by mistake.