Throttling on window scroll and resize JS handlers