changing js format to html