adding examples for browser and node.js