Added writer to correctly write HTML