Updating promises article

…due to change in Promise.resolve and removal of Promise.cast