modify topics javascript