use epubjs-viewer's source code.