switching to phonegap 3, and refactoring the initi code on index.html to better adapt from web to device