Jquery function for attaching events listeners which do not catch events more often than a timeout period