A bugfix for not closing script tag

A bugfix for not closing script tag, see issue #12.