Syntax highlight for JavaScript code

Also, unindented the code. No code changes, just spacing.