We need to change the content of this modal in different plugins based on context, so move some parts of it into the JS file.