changing path in index for .js