Put gruntfile, refactored to work correctly in node and corrected style