This HTML file shows two lists that use javascript to toggle the display of two divs, respectively.
Replace the lines of javascript in this file (lines 6-11) with your own implementation to mimic the existing behavior.
You may use external libraries to help but some part of the implementation should be your own hand rolled code.