changed grunt tasks to functions