Fixing Firefox issues, and adding missing DOCTYPE declaration (lame)