For IE8, $.text() does not work on <script>, so use $.html() instead