added stricter jshinting

Added the following jshint checks:
1) eqeqeq
2) eqnull
3) strict
4) latedef
5) undef