updated to use newer phonegap version