try to be more XHTML compliant

code by John SJ Anderson!