Make redirect more robust

Inspired by PR #1 from @codehate, make redirect work for browsers
with noscript running. Also make page pass W3C validator checks.