minimize references to 'window.Promise'

see #94