That's just at the bottom, it won't solve the issue. I'm probably just not explaining myself well enough.
The flow of the game should be something like this.
1. Start game, import high score (if one exists) and set it to varHighscore. Set text highscore to varHighscore
2. Play game, player earns score.
3. When game is over, check if the score is larger than varHighscore
If it is, set webstorage high score to SCORE.
4. Restart layout since the game is now restarting because it's game over. Upon restarting the layout, you go back to step 1.
Just sticking the code in the bottom of you current code isn't going to solve the problem.