Updated HTML writer to not use apache commons IO