PeriodicalExecutor service for Angular.js