javascript fix :(

debounce was not working