Cleaned up js
Persisting messages in rooms