cleaned up the javascript and html. now only the methods used in the page remain