introduce timeago.js and global functions