Going to provide some context first. Question is at the bottom.
Background
I\'m making a browser based javascript game where users join a room and