You can create the view and its controller first and then instantiate the view:
// define a new (simple) Controller type
sap.ui.controller("view1", {
});
// define a new (simple) View type
sap.ui.jsview("view1", {
// define the (default) controller type for this View
getControllerName: function() {
return "view1";
},
// defines the UI of this View
createContent: function(oController) {
return new sap.ui.commons.Label("text",{text:"User Name: "});
}
});
var myView = new sap.ui.view("view1",{type:sap.ui.core.mvc.ViewType.JS, viewName:"view1"});
Regards,
Kimmo