added karma for travis-ci testing