Added the index of the clicked tab to the 'onTabClick' event. To get in this point what is the clicked tab (before that we only know about the actual tab)
Merge pull request #15 from darkaico/issue4

Fix for the problem described on Issue 4