added several javascript escapes for plugin regexes in edit.php