minor refactoring of Gruntfile