Remove elements when all listeners are removed
Add minified version