JavaScript: replaceAll Method