[javascript] Is there a RegExp.escape function in JavaScript?