improved dropdown.js support