Shows how to write a JavaScript module that works both in a NodeJS script as well as a web browser