Upgrade to Scala.js v0.5.0-M2.
Use the statically typed DOM API.

As an example of using %%%.