fix error regarding promise.js, looks like it was moved