Updated to work with the latest version of grunt

registerHelper has been removed from Grunt, I replaced the usage with a function call.