Fixed Promise.reject typo.