JSHint syntax fixes