Returns client side script capable of rendering errors in desired format. This should
be in form that can be directly appended to rendered HTML and should be enclosed in
HTML <script> tags.
When the errors are rendered with some other mechanism, returns null or empty String.
script capable of rendering errors in desired format