lib/common.js
function updateOptions( options, defaultOptions){
        for (var id in defaultOptions)
            if ( defaultOptions.hasOwnProperty(id) &&
                 ( !options.hasOwnProperty(id) ) ||
                 ( options[id] === '') ||
                 ( options[id] === null)
                )
                options[id] = defaultOptions[id];
    }
function updateOptions( options, defaultOptions){
        for (var id in defaultOptions)
            if ( defaultOptions.hasOwnProperty(id) &&
                 ( !options.hasOwnProperty(id) ) ||
                 ( options[id] === '') ||
                 ( options[id] === null)
                )
                options[id] = defaultOptions[id];
    }
updateOptions: Update options with missing id/values from defaultOptions