Add more rules to JSHint and fix issues reported