extjs refactor