It would be great if you can add your previous question link because this question is related to the previous one.
Otherwise it means, you are using
TabContainer1
without defining it.
So before using it, add a statement like this -
var TabContainer1;