Working Taskmanager before AngularJS