a simple function to execute a callback, after the user has stopped typing for a specified amount of time