Index file with js