bug fix - the inital state of a promise should be pending

well, turns out the jquery's resolve is different than Promise's resolve. The former simply mark the state of the promise as resolved, whereas the Promise's resolve triggers a [promise resolution procedure](https://github.com/promises-aplus/promises-spec).