Add device plugin
Add cordova.js to index.html