doc: make the usage example more pragmatic
doc: make the usage example more pragmatic

The usage example isn't too pragmatic.

This cleans it up, uses const for require, etc.

caspervonb/node-browser_process