Custom key settings could not be read when anon

We were trying to read the jsbin object of the window object, but since we made the entire thing private a few months ago, this started breaking.

So now I pass in the correct context to the read the object.

Fixes #1987