Issue #11: Fixed call to event - should be call to e in ui.js