added basic flash message system to js