Carrier plugin from my Apache Cordova 3 Programming book