Improved how content between script tags is detected.