JavaScript: window resize debouncing