Avoid escaping quotes when generating javascript to include the value of a field within an error message.  This allows the javascript to execute rather than having it appear inline in the error message.