fix 504 - use debounce from Angular 1.3