Expose JSON parse errors in demo

In this pull request, JSON parse errors are exposed when clicking the "Render Template" button in the demo. Previously, they were output to the javascript error console, which varies in prominence between browsers.