modify config to support travis and upgrade karma conf