var gameData=localStorage.getItem('we_save_it_aquatic_rescue_v3'); var gameData=gameData.split('levelScoresa'); var gameData=gameData[1].split('-'); var gameData=gameData[0].split('i'); var i=1; var stars=0; while (i-->