For phonegap