Use text() instead of html() to get and set script tag contents