Update dropdown.js

Updating change to reflect comments.