close <head> properly in test html files
rework for Internet Explorer 10