renaming js to index