add js to index