angularjs example cleanup & fixes (using npm to install=