clash of clans - phonegap api