A simple JS platform game engine