Service checker initial structure for angularJS