removing the deprecated js code from the html file