According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape you should update your old scripts:
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.
A Quick Fix?
Fixing it could be as simple as dropping a line into your JS to add in an unescape()
method if one doesn't exist.
window.unescape = window.unescape || window.decodeURI;