Edit template and fix grunt-karma dependencies