phonegap crossover code