Make inline js follow style guide