fix js rendering of dropdowns