Both methods updated for and tested on Cordova 1.6.1

Updated to a more recent version of PhoneGap. This probably works fine on 1.7.0 also - i just did not test it. You should think about getting this added to the offical plugin repo over at the PhoneGap incubator.