Changing from a Writable stream to a Transform one so that dom modifications can be consumed