Enable JSHint during test

JSHINT is now enabled during unit test. Failing the lint will fail the
build.
Lot of new options are enabled and all errors are fixed.