added js to index files