added sg-changed

setTimeout for 1 second that if called in quick succession (<1s), the callback will only trigger once. Most common use is when you want an input to trigger an ajax call as soon as the user stops typing instead of every time a key is pressed.