delete unused jsvascript code and move the extern javascript file to html bottom