Indeed this is taken directly from that. I was reluctant to make the Browser method public, but I agree it'd be good to not duplicate it. I don't know how to make "friend"-style methods in Javascript.