Update modals.js

make sure that were actually handling a `.modal` element.