Implementing card.io phonegap plugin example.