Simplify quote()

In this chunk of code:
```JavaScript
else if (/["\s]/.test(s) && !/'/.test(s)) {
   return "'" + s.replace(/(['\\])/g, '\\$1') + "'";
}
```
You may remove the `'` in the replace since you already tested that it is not contained in s (`!/'/.test(s)`)