I found the issue but I am still having problems to find other issues because the preview mode of C3 shows a different situation than a browser.
Now I am getting the local storage value to define a string variable. When I test it on C3 preview mode the game identifies this value but when I try in the regular browser, the result is NAN for this same value. I really don't understand that.
I am using Opera to edit the file in C3 and I have tested the game on Safari, Firefox, Opera and Chrome.