David Walsh's minified Debounce method: http://davidwalsh.name/javascript-debounce-function