bug fix: height of window wasn't being set for PDF view.
also moved JS to js file for that one page. this thing is ugly! TODO: cleanup