escape method has been deprecated

escape method has been deprecated since ECMAScript v3.