allow javascript-objects return from javascript function to act like a dict with a "get" method.