Object oriented programming using Ext JS4