Add class to selected item; Allow specifying the dropdown container; Add amd support