use localStorage to save the play time