removed unnecessary JS code at bottom of pages