figure out how to get the last page of ids without parsing javascript
just in case _links.last is null in /random/ids, res.send an error