Hi everybody, I have a question, I'm new in ST2 but I made some aplications in ST1, I have a doubt ... in ST1, I used for example:

index.html
Code:
<!doctype html><html>
<head>
<!-- CSS -->
<link rel="stylesheet" href="resources/css/sencha-touch.css" type="text/css" />


<!-- LIB -->
<script type="text/javascript" src="resources/lib/sencha-touch.js"></script>


<!-- APP -->
<script type="text/javascript" src="src/views/loginViews/loginView.js"></script>
<script type="text/javascript" src="src/index.js"></script>


</head>
<body>
</body>
</html>
index.js
Code:
Ext.setup({    
    onReady: function() 
    {
		loginView = new loginView();
    }
});
loginView.js
Code:
loginView = Ext.extend(Ext.Panel,{
	fullscreen: true,
	layout: 'fit',
	......
});


Ext.reg('loginView', loginView);
But that doesn't work in ST2. What do I have to change to have a similar structure in ST2?
Thanks in advance.