grunt is injected into the template function, so moving the declaration of _ to inside the function and using the inject grunt object instead of trying to require grunt (since it doesn't actually exist in the .grunt-init template folder