parser for json -> javascript