Simple JavaScript Debounce Function