create flash_messages.js