add javascript to show and hide the departments filter list