Avoid usage of `Array.indexOf` function, which is not available on IE (and not yet part of any final ECMAScript standard).

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796658 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/jquery.couch.js b/jquery.couch.js
index 62d9cf2..caf7e3d 100644
--- a/jquery.couch.js
+++ b/jquery.couch.js
@@ -289,10 +289,10 @@
     var buf = [];
     if (typeof(options) === "object" && options !== null) {
       for (var name in options) {
-        if (~["error", "success"].indexOf(name))
+        if ($.inArray(name, ["error", "success"]) >= 0)
           continue;
         var value = options[name];
-        if (~["key", "startkey", "endkey"].indexOf(name)) {
+        if ($.inArray(name, ["key", "startkey", "endkey"]) >= 0) {
           value = toJSON(value);
         }
         buf.push(encodeURIComponent(name) + "=" + encodeURIComponent(value));