fixed report.js
report first, then reboot