Html 5 Game Engine using the power of Scala, translated to Javascript using Scala-Js