Fixed build and karma commands in .travis.yml

Fixed some travis issues