removed phonegap code