$('.modelrender').html(function(i, v) { return v.replace(/\/ray/, "<img src='/images/program/v-ray.png'>"); });