FYI, you can use an implicit class here:

```scala
implicit class JSMapOps(m: Rep[Map[K, V]]) {
  …
}
```

Instead of the class + implicit def.