add js to index page