There are two split-outs code of the code here: - Animation stuff is in unread_ui.js. - PM unread counts get handled by pm_list.js.