delete unused javascript code in index html file