Bugfix for #1

This should fix the style tag issue on the first script tag.
Merge pull request #2 from Jamesking56/master

Fixes #1