Letting it be usable for both browsers and NodeJS