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