move javascript to js and modify script link in every page