changed location of Ext.define out of Ext.onReady