Transform login js into RequireJS