Set script.text instead of appending a text node.

This method of setting the content of a script seems to work in all
browsers, including IE8 and earlier:
http://stackoverflow.com/a/12201713/128454

Closes #4.