replaceall using regex javascript