Make compatible with node and browser.