add back phonegap code