compatibility with Readium.js