Timer service for Angular.js applications