documentation and code changed for cordova 2.4
Merge pull request #4 from meso-unimpressed/master

Changes for Cordova 2.4: From ccoenen