cleanup first part of js in activity overview page