JS debounce issue