make message div closable
support when we just have a title too
move our js into its own file