Fixed Javascript errors with Sencha Touch 2.2.1