write.html cleaned