javascript string replaceall vs replace