add new javascript for index.php