Fix compile error on Scala.js 0.5.4