added scala.js DOM fix