Updates JavaScript code to match community standards.