escape and unescape

Change to encodeURIComponent and decodeURIComponent