Conditionally load cordova script + update of cordova script