init phonegap angular