Implement __pairs for JSObject