Fix bug with object properties named "type". Fixes #183
Add setOption method (only works for `show_errors` currently). For #242
Make window.jsoneditor accessible from demo.html to help with debugging.