viewer.js: fixed pagemode (bokmarks != outline) -- will squash