javascript string prototype replaceall