var svg =
'<div class="youtube-preview" style="width:%2; height:%3; background-color:#333; position:relative;">' +
'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" ' +
...
'</svg>' +
'<div style="text-align:center; padding-top:10px; color:#fff"><a (TARGET "_BLANK" HERE) href="%1">%1</a></div>' +
'</div>',
Is it reasonable? Also sorry if i don't do it myself but i have very low experience with Git and JS