Fix ujs ajax-modal. Refs #1987