First attempt at export json for rendering with javascript