added init and upgrade phonegap version