add timeAgo function for more logical date formatting