using jquery.timeago plugin from with in app and some refactoring