JS reorganization for activity feeds