Fix click binding as it didn't work in a minimized js, remove event listeners on dispose