Background, moves index javascript to index.js.