added a globalConfig param for web or android; removed extra jquery / foundation call, included cordova.js in index, make exit app method inside header view