modified testee to insert scripts after the last script tag as opposed to the end of the body.