Add back js modal handling.