Basic Javascript->Cocoa bridging