Add debounce function
Merge pull request #708 from geoadmin/dev_debounce

Add debounce function