minifying and validating javascript with requirejs and grunt