refactoring confirmed report, comment and app.js