In order to get around eBay javascript restrictions, we need to substitute String.prototype.replace function call with String.prototype.replaceEbay, and avoid using literal string 'script'