fixed JS event for altering image tracking code with spearate plugin