You're thinking of JavaScriptCore. It allows Objective-C objects to be used inside of JavaScript (and vice versa).
It's actually a pretty cool technology. I gave a talk about it this month at Berlin CocoaHeads, and I'm gonna put some blog posts together about it soon!