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