(function() { ajaxify.register_events(['api:get_all_rooms']); socket.on('api:get_all_rooms', function(data) { var active_users = document.getElementById('active_users'), total = 0; active_users.innerHTML = ''; for (var room in data) { if (room !== '') { var count = data[room].length; total += count; active_users.innerHTML = active_users.innerHTML + "