I pushed a commit that does this, but it looks very verbose, and I think I like the switch better, since these are mostly single function call delegations anyway (also, there is no DOM handleEvent function in ```active_alarm```). What do you think?