Topic/replace tabs js