differentiate $interval and $timeout in AngularJS