flashmessages.js with ugly hack for twice escaped messages