Add ability to create JSON objects in DOM