javascript: Fix debounce period