Your screenshot is a bit of a mess.
What I do is take the game out and make a small demo - get it to work then put that demo into game.
From what I see, I understand that when level > webstorage you want to set the score... but I find this isn't the best way to do it. It is essentially everytick. Game runs through eventsheet evertick and if Level>webstorage it stores it.
How do you store score to variable level? I would create a function to save to storage and put that immediately after you update score.
This does 3 things.
1) It only updates - writes to webstorage when player score changes(he could be running around for half an hour without picking up a coin - lol), and
2)removes the every tick check.
3) and you can feel all fuzzy and warm inside knowing that his score and webstorage are being updated together (which is what level>webstorage is) but this way is better. Nothing worse than a player loosing his latest score - Grrrrrr - lol