Function on Tabs object

Hi everybody!
I have troubles to run functions on an Tabs object.
E.g. changeTab() => see picture below:


#tabs1:

Anything I am doing wrong?
Thanks for helping,
J Flo