add options width option & className from the options elements pass into the recreated options
define plugin now recive function as argument not Object
define plugin pass the name of the plugin into the definition function