Put this in the companion object for `ScalaJSCoreLib`. It does not need to be in the class (and hence have an outer accessor and so on).