Fix grunt-karma config and edit index template