Swapped event-based class implementation for old app.js.