we have the javascript library underscope available in oc7 - please use the debounce function here
http://underscorejs.org/#debounce