using clearInterval in scalajs