30-min fixes in the JavaScript game