Event-Driven HTML5 Game Framework