fixing typo so code works as a commonjs module