clean up the html generated by js