Make readium js compatible for Firefox