Changes debounce function to use underscore