Update promise.js

Now autocompletion works in Eclipse