Optimized travis before_install for Javascript.