used jquery replaceAll instead