escape to encodeURI

javascript escape is deprecated and encodeURI does pretty much the same thing. change the global to encodeURI for js lint reasons