I've been trying to display the latest threads from my forums on my homepage but can't get it to work right. It will display them but the links are not clickable.

The code that I used was:

<script src="/forums/external.php?type=js" type="text/javascript"></script>
<script type="text/javascript">
for (i in threads)
document.writeln(threads[i].title + " (" + threads[i].poster + ")<br />");
This is using the vB3 external thing.

Anyone have any ideas?