json -> javascript object formatting