renaming index and adding js files.