function getRecordSrc() {
    var fsFail = function(error) {
        console.log("error creating file for iOS recording");
    };
    var gotFile = function(file) {
        recordSrc = file.fullPath;
        //console.log("recording Src: " + recordSrc);
    };
    var gotFS = function(fileSystem) {
        fileSystem.root.getFile("iOSRecording.wav", {create: true}, gotFile, fsFail);
    };
    window.requestFileSystem(LocalFileSystem.TEMPORARY, 0, gotFS, fsFail);
}
Function to create a file for iOS recording