Makes sense, I'll move it into account-creation.js since that's only loaded for the index page.