adding promise.js file