Parse js obj model to html