Replace deprecated Java Script function: "escape" with "encodeURI"