fix #33 added bit of javascript to work with failure & success flash messages