Add support for requiring viewer.js with CommonJS syntax

```js
var $ = require('jquery');
var Crocodoc = require('viewer')($);
var viewer = Crocodoc.createViewer(/*...*/);
```