update room.js with jshint changes