added documentation to toggle modals with javascript