Pass code tree to javascript via jinja tojson