A simple event queue manager written with JavaScript.