changing dropdownup to dropdown-autoflip (dropdownautoflip for .fn plugin name)   also changing the data attribute to data-flip="auto"