Use "globals" instead of deprecated "predef" in config

* Don't use "predef" anymore when creating a default config.

* Pass globals as third parameter to JSHINT function, as explained in
  http://www.jshint.com/docs/#jslib

See also https://github.com/jshint/jshint/issues/710