added module to give us a date based on a time ago approximation from Pinterest

+ using it in index
create a function for this duplicate code