Refactor code for less offspring production

* use timeago jquery plugin to display time