build js flash message via jQuery to escape html
Merge pull request #3395 from timoschilling/escape_js_flash

build js flash message via jQuery to escape html