Update dropdown.js

Added two event handlers to auto-close the collapsing navbar menu when (a) a menu selection is clicked and (b) a click somewhere outside the menu occurs