Fix jshint errors.
Remove unused utility functions.
Fix jshint errors in tests.
Run jshint for tests as well now.