move javascript from index.php into css/script.js;