結果 : create a debounce function in javascript