Added debounced browser resize event