I have debounce funtion
function debounce(func, wait, immediate) { // \'private\' variable for instance // The returned function will be able to reference