edited the javascript file

edited the javascript file, removing the features that is not used on
the OnePage Template.