fixing typo (so lib can be used in browser as-is)