Updated JS to close other open menus when parent is clicked

Start Line 51: Added snippet to close other open menus when parent is clicked.