Fix karma error conflicting with Travis-CI