Altered Bootstrap dropdown menu JS to be more mobile-friendly