In that case it would be easier to script the disappearing act into the message itself. Each message should be a user widget (they already are, right?) So it can:
No other script would be necessary.
Another alternative would be to run a timer with a varying interval - the more messages there are, the more rapidly it removes them. But the earlier suggestion seems more inline with the ask.
