Tiny debouncing function for Angular.JS.