Added link and check for cordova

A link to the cordova library was added to index.html along with a check
to see if cordova has been included within app.js