Created external javascript for accordion menu in discovery.