Upgrade to Scala 2.11.1.
Replace js.{Number,String,Boolean} by {Double,String,Boolean}.
Replace Double by Int where applicable.
Use default arguments where clearly valid.