Prepare `javascript.escape` and `URL.escape`