That situation does not normally come up, because I stop trusting that site. If a page that just displays documents requires javascript to do so, then clearly the developers were not worthy of my trust.
There are legitimate uses of javascript, but I'm not going to enable it just to look at a document.