Make dataverseViewFile.js CommonJS compatible