Make Debouncer function reusable for other javascript functions.