Added closing 'script' tag

The ‘generate’ method is now adding a closing ‘script’ tag to JS
scripts. This is for backward compatibility.
Merge pull request #1 from d3rd4v1d/master

Added closing 'script' tag