Automatically disappearing flash messages

Added some JS to make the flash messages disappear after about 5 seconds.