Denormalize the request table and add is_page flag.
Reorganize app.js