Small tweak to $.debounce() to ensure timeout variable is undefined when checking (not relying on setTimeout() ID being greater than 0, and fix to DOM.hasClass() when called internally via DOM.addClass()