new file:   lib/js/modal.js