A simple, event based javascript game engine