a sample timer implemented with angularjs using socket io