Improve jshint-mode to support globals.