Fixed cursor offset bug in room-script.js