linked index to .js file