node replaceall is not a function