Debounced JavaScript resize event with orientationchange flavor