Fix docs page

The code for generating and displaying the sample JSON string is exposed in the HTML.  This fixes that, as well as removes the old global variables in favor of _config().

Also wraps the JSON <pre> for better readability.