updated to store lists of times on javascript side