tightened up the code
tightened up the code

Microsoft/cordova-samples,Microsoft/cordova-samples,Microsoft/cordova-samples,Microsoft/cordova-samples,Microsoft/cordova-samples,Microsoft/cordova-samples,Microsoft/cordova-samples,Microsoft/cordova-samples