document.write('<script type="text/javascript" charset="utf-8" src="../../cordova-1.7.0.js"></script>');
document.write('<script type="text/javascript" charset="utf-8" src="../cordova-1.7.0.js"></script>');
document.write('<script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script>');

function backHome() {
	
	if (window.device && device.platform && device.platform.toLowerCase() == 'android') {
            navigator.app.backHistory();
	}
	else {
	    window.history.go(-1);
	}
}

@@ -1,109 +1,39 @@
-document.write('%3Cscript type=%22text/javascript%22 charset=%22utf-8%22 src=%22../../cordova-1.7.0.js%22%3E%3C/
+var VERSION='1.7.0';%0Avar 
 script
-%3E');%0A
+s = 
 docu
@@ -41,101 +41,140 @@
 ent.
-writ
+getElementsByTagNam
 e('
-%3C
 script
- type=%22text/javascript%22 charset=%22utf-8%22 src=%22../cordova-1.7.0.js%22%3E%3C/script%3E
+');%0Avar cordovaPath = scripts%5Bscripts.length - 1%5D.src.replace('cordova.js', 'cordova-'+VERSION+'.js
 ');%0A
+%0A
 docu
@@ -241,24 +241,27 @@
 rc=%22
+' + 
 cordova
--1.7.0.js
+Path + '
 %22%3E%3C/
@@ -298,10 +298,8 @@
 ) %7B%0A
-%09%0A
 %09if 

Load cordova-js only once.