You've missed out a comma here, so doc2 is a global.

Other than that this change looks good, if you add the missing comma then I can merge this in and create a new release, thanks.