For maintainability, you should switch to some sort of templating system, like [Underscore templates](http://underscorejs.org/#template), for example:
```js
var tpl = _.template('
<div class="imageModal-link">
    <%= smallImageHTML %>
    <i class="icon-fullscreen icon-3x"></i>
</div>
<div class="imageModal">
  <div class="imageModal-content">
    <div class="imageModal-imgWrapper"><%= largeImageHTML %></div>
    <i class="icon-remove icon-3x"></i>
    <div class="imageModal-zoom"><i class="icon-zoom-in icon-3x"></i><i class="icon-zoom-out icon-3x"></i></div>
  </div>
</div>
');
var result = tpl({}); // data goes here
```