based on `http://scotch.io/tutorials/javascript/node-and-angular-to-do-app-controllers-and-services`