Fitness tracker in JS