Add support for requiring viewer.js with CommonJS syntax