added some js to let a user close a flash message or have it fade out after 7 seconds