Hack in some DOM events, needs work