AngularJs timer with throttle plus valid jshinting