Update foundation.dropdown.js

Fix for dropdowns not closing