Samples of code for Sencha Extjs