Made ocrad.js optionally run as a Node.js module.

The actual changes are the added file package.json and lines 8071–8073 of ocrad.js (sorry for the diff spam, my editor automatically removes trailing whitespace). I have also added a demo in ./demo_nodejs.