Add JavaScript syntax highlighting

I appended js to the code blocks to make it readable.