refactor report.js to use /api/reports