[6624] Upgraded Java and JS code to Cordova 2.6

Made JS code AMD compliant
Changed README to be in sync with the code