[#1] Workaround for Scala.js issue 1191.