Dart port of jquery throttle/debounce