A MEAN app for demonstrating how to reduce code duplication in Angular.js