Cleaning up the code formatting blocks

Changing "json" to "javascript" in code blocks so the coloring works better.
Added missing `"` in `require()`.