fix Gruntfile, reduce code size