add missing initPromise.setSuccess()
Merge pull request #450 from jimbo1007/jsfix

add missing initPromise.setSuccess()