javascript object to html converter