Hi James,
I created a pull request with my changes to the plugin.
However, the plugin maintainer suggested that the changes are better to be included in a new plugin, because they are specific for gruntjs package (and perhaps more packages in the future), and they meant the plugin to be nodejs generic.
Therefore, can you please use my repository to start a new plugin hosted under jenkinsci?