JS backend: Add class object support.