refactor grunt file