changes for ie

switched from zepto to jQuery, also modified the way cleanup listeners
are called, because IE doesn't like you messing with the prototypes of
`document` for some reason.