minor fix
add a task to Gruntfile
minor refactoring