fixed leaking accidental global variables
npm version