Remove references done by hand in context.

* Just use JS reference handling.
* Thanks for the suggestion, Zach.