Also, you should be very explicit what WordTransform is doing. Is it modifying the DOM that is passed in, or is it generating a new DOM (it shouldn't do both)?