Convert "#modal-tasks-list-view-template" into inline HTML string in JS