A second pass at a simpler demo of the JSON API cargo culted from Hex

I'm pretty sure there's a more  reasonable way to do the event listener with the simple JSON API, but hopefully the rest of this should be a bit better than the first pass.