updating docs on CommonJS usage

The current example in the docs weren't working for me. Not sure if that works in the browser, but I wanted to update the docs for node. I had to create a unique variable for parseFormat via `require` as can be seen below in my PR.