Updated Gruntfile.js for version 4
added complexity task

jslint conform
optimization recommended by complexity
more test

Signed-off-by: Pascal Piche <pascal@nitriques.com>