Remove dead code and use travis_retry in npm install command in tests/angularjs/scripts/install-ubuntu.sh to remove random travis failure.