AngularJS and Node.js best practices