$(\'img\').each(function() { if (this.src.indexOf(\'larger\') !== -1) { var normalized = this.src.replace(\'larger\', \'normalized\'); console.log(\'