Moved JS scripts to index