updating JS and bumping VER number
diff --git a/Res/js/cordova.js b/Res/js/cordova.js
index f5a3fb1..42ea38a 100644
--- a/Res/js/cordova.js
+++ b/Res/js/cordova.js
@@ -1,6 +1,6 @@
-// commit 337b1f443491f3fdb816dc32f70e5378e0e1967c
+// commit 884cb0e8f4809b6182b41101c092eee1139f82da
 
-// File generated at :: Mon Oct 15 2012 17:23:41 GMT-0700 (PDT)
+// File generated at :: Wed Oct 24 2012 12:54:26 GMT-0700 (PDT)
 
 /*
  Licensed to the Apache Software Foundation (ASF) under one
@@ -695,7 +695,6 @@
         return ( CommandProxyMap[service] ? CommandProxyMap[service][action] : null );
     }
 };
-
 });
 
 // file: lib/common/common.js
@@ -4197,7 +4196,7 @@
            me.platform = os_vendor + " " + os_name;
            me.version = os_version;
            me.uuid = uuid;
-           me.cordova = "2.2.0rc1";
+           me.cordova = "2.2.0rc2";
            success(me);
        }
    };
@@ -6152,8 +6151,8 @@
  * Alerts a message in any available way: alert or console.log.
  */
 utils.alert = function(msg) {
-    if (alert) {
-        alert(msg);
+    if (window.alert) {
+        window.alert(msg);
     } else if (console && console.log) {
         console.log(msg);
     }
diff --git a/VERSION b/VERSION
index bdc2ab6..8b6adce 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.2.0rc1
+2.2.0rc2