Fixed duplicate </head> and compacted header and footer