javascript string replace vs replaceall