Switched to JSHint and added .jshintrc file.