if what you just posted above is the content generated by hit.aspx, then no wonder you got scripting errors, since they are not valid javascript statements, for
<script src="whatever.aspx" language="javascript"></script>
to work, "whatever.aspx" must generate code like
var s = "1231";
document.write(s);
function hello()
{
alert("hello");
}