Show flash messages with js