extra statement showing on html page "function doaction(recType) "

extra statement showing on html page "function doaction(recType) "

I have many reports that I want to open in a html page so the report name does not show in the browser address bar. I created a table of a report code such as ABC and the actual link name. When I call the html page I send it the report code and then lookup the linkname. This works as expected but at the bottom of the report I have
function doaction(recType) { } $(document).ready(function() { doaction(); });

Here is the html page
htmlpage Report_View(Report_Code)
<%{
Report_Link_Record = Report_Names [Report_Code == input.
Report_Code];
if (Report_Link_Record.ID != null)
{
Current_RTO = thisapp.Roles.Fetch_RTO_From_Email(zoho.loginuserid);%>
<div elName='zc-component' viewLinkName='<%=Report_Link_Record.Zoho_Report_Link_Name%>' params='zc_Header=true&Student_Name_Enrolment.RTO=<%=Current_RTO%>'>Loading ...</div <%}
else
{%> <br />
  This is an invalid report<br /> <%}
}%>