add toplog js for tabs