make code grunt-contrib-jshint 0.3.0 compatible

I also turned the `eqeqeq` option on, disabling it only in a few places where loose window comparisons are needed for oldIE.