Made the key accessible in javascript
Finished the Roomstate class