stubbyid isn't an npm package or something we can pull in? i was going to read through this until i realised its basically a copy of https://github.com/toolness/stubbyid/blob/gh-pages/stubbyid.js