Move templates/index.js to modules/template.js for orderliness