Do not use portal_javascript, use the same way specific js are called in documentviewer Template