It's a quote matching problem. The whole thing is already a string inside single quotes. But what you could do is put the html outside the script tags, like:
Code:
$navdata['tab_oda5_837']['text'] .= '<script language="javascript" src="http://www.talkjesus.com:35555/online.js?group=default"></script>
<span style="float:right"><script language="javascript">
document.write(""+ online.ln+"");
</script></span>';