Fix typos, grammar, and formatting in readme

Formatting changes only include converting two code blocks from indented to fenced with explicit JS syntax highlighting.