rough attempt at html5 support.