add <script type="text/javascript" src="cordova.js"></script>