improvement getImports for generate.page.class.js and generate.extjs.class.js