like I mentioned elsewhere (not your pull requests) putting reso count into a function in `portal_info.js` would be useful, given it is now used in more than one place. This is fine for now, but would be nice as a follow up patch