added npm install to before_scripts, changed some package versions to get travis to build.