reorganizar codigo extjs