Using the modal JavaScript class