Hey there, after a bit of a code, I came up with this html page. I dont think it exactly duplicates the functionality of your script, and its probably got plenty of bugs in it (in-particular, it doesn't sort the tweets yet). I got this far and ran out of API allowance.
Basically I switched to the JSON outputs, used jQuery to JSON-P them into local variables, which I then iterate over and append the `<p class='bwst'><a href=twitter.com>...` lines to the DOM directly, rather than via 'nasty' strings. Whilst doing this, I get the reply-to tweets (recursively) and append each of those onto the DOM too.
I will then do something like `$('[data-date]').sort()` on the data-date attribute, leaving them all in correct date order.
I can also then maybe strip out the data-date attributes if you want.
tweets.html