Updates friendly times with javascript