Some minor changes I've made while reading the code.
Should mostly be safe, but the code is untested.
cherry-pick what you like!
Simplify JSON code
Make meaingful more meaningful.
- Shortens the code when minified
- Easier to read, because everything is at one
Various minor improvements
Reuse some logic. *untested*
Add two missing semicolons.
Thanks, these all look great to me.