Substitute String.prototype.replace function call with String.prototype.replaceEbay to get around eBay javascript restrictions.