Hi,
I spent some time looking at the page error and my initial suggestion of the problem was incorrect. Apparently, the code problem is with the document.getElementByID("twitter_update_list"), which is a script brought in from http://twitter.com/javascripts/blogger.js
The other coding is legal, just not a method I generally use for element existence test.
Danno