Add Atomic for Scala.js + tests