from http://ccoenraets.github.io/cordova-tutorial/setup-files.html