fix createConfig
Fix JS, use Ext.define to define Object.