Edit in JSFiddle

<script src="cordova.js"></script>