linked JS to index