ie `var invokedMethod = typeof(plugin.setup) === 'function' ? plugin.setup : plugin;`