A little difficult to help because there's several ways to create levels/level selection and I don't know which method you've chosen. Do you have a separate layout for each level? In that case just store the checkpoints on a variable and:
Player lives = 0 -> Go to Layout (by name) "Stage"&Checkpoint
For the level selection layout (if there's one), store the checkpoint variable in LocalStorage and load it from there.