Fix nested tags inside of script tags.

Added some extra logic inside of the script tag specific piece of the parser to allow nested tags inside of script tags.  It used to infinite loop.

#115
First one is already tested in an existing test.  Will add a test for your second variation though.