Moved scripts.js to index.js, modified template structure