Add JavaScript syntax highlighting

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