modified code

modified code to make it work in IE8.. IE8 was changing all element
names into caps..