Faster write.html version