結果 : write a debounce function in javascript