Can you split this out into multiple lines? It's a lot of logic in one line. Something like:
```js
var data = {
  "smallSrc": $(this).attr("src"),
  "largeSrc": largeImageSrc,
  "altText": $(this).attr("alt"),
  "largeSrc": largeImageSrc
};
var html = _.template($("#image-modal-tpl").text(), data);
$(this).replaceWith(html);
```