JSHINT usage non global possible

this change makes it possible to use JSHINT without setting global variables.
its still compatible to the former usage.