Allow optional customization of displayError JS helper.

I need to render one of these templates with a different style in a
different location for some deployment changes I'm making. I also need a
link in the message.