Simple js game engine slash game experiment