Do not do this.
Embedding <script>HTML content in the DOM is unreliable: it works differently in different browsers, and jQuery will not protect you from the differences.
, innerHTML <script>, <script> , ( jQuery append), script , ( ).
, , , button.js, document.write(). ; , , . A script, document.write(), <script>. script , .
( , , , button.js script - , URL-, escape encodeURIComponent -and missing HTML-escaping. .)