fix Promise jshint warning