add missing event namespacing in modal.js

CC: @fat for confirmation