add dynamic_message.js and fix the bug of date format