JS backend: implement hashCode, toString and equals.
JS backend: tests for hashCode, toString, equals for data classes.