Modified jsb retain to return object