Move cordova load script to its own file