Added new last activity data to compute tendencies in JS