change to phonegap version 3