Change declaration of a `_promise` to local scope, as intended

With `_promise` left in global scope, this code breaks with `ReferenceError` after minification.