convert to javascript and start to actually parse