reformat, add extjs code for processing box