Code is now in different files at frontend/js/app/