Update code from the provided sencha touch example and reformat