Store object definition ID in each js_class.