[BUG #7866] Added "immediate" feature to the "debounce" method. Additionally it was necessary to rename the "function" namespace to "func" since IE8 is *not* tolerating this.