Missing quotes around the `data-protected` argument. Consider using `.data('protected', roomInfo.room.type)` instead.