Update JavaScriptcode.js

It all almost works. Still have to correct room 8 with an item (take button visibility problem) and change score functions, I guess, since I have too many global variables now. With global arrays I can modify score count, I hope.