added cordova-plugin-network-information plugin to allow proper network detection with cordova 3