strict method for node.js and browser.