Rename viewer.js to ODFViewerPlugin.js Add a viewer.js and pull non-odf specific methods into this API from the ODF plugin Initialize Viewer with ODFViewerPlugin during window.onload