Ported to scalajs 0.5.3

Example ported to scalajs 0.5.3