workaround for this stupid jQuery issue: http://api.jquery.com/on/#direct-and-delegated-events

You can't attach click handlers, and such, using jQuery when the element is detached, even though you can with addEventListener