Supporting data class for JS backend (second version)