Move scripts to index.js