Improve (?) the console.x regex to ensure we're inside a script tag.
Merge pull request #447 from remy/fix/console-text-432

Improve (?) the console.x regex to ensure we're inside a script tag.