Reformat of requirejs module format for login controller.