removed all the html dependencies from the js