jQuery function which debounces resize()