only inject rsiframe.js when rendering a Shiny document or presentation