Improve gruntfile in js modifications