jsonned some js code