used jquery to select the src attr of img in the DOM and added logic to increment when a match is found