Changing from a Writable stream to a Transform one

This is so that DOM changes can be consumed.