jQuery : Why do I get an error message that .replace is not a function?

Published --