add loadreport.js and modify build