Use clone() to replace html in js