add global to fix jshint