Add Scala.js test suite.

Improvements and squashing on top of #37.