I got the following JS error:
whenever I tried to enter a name and a rating in store fields to add a new rating.
How do I fix this?
From the code, it seems that it is bound to crash at that line if there is no contract of that name in existence.
I ran that same sample Dapp and I get EXACTLY that same error when the contract has not been created. The code works fine as soon the contract is created! euri10 has got it spot on!