Remove the closure, this needs to be a global.

You'll also need to add allow the variable to be unused so it passes linting: /* jshint unused: false */ at the top of the file