Improved the tab clicking as follows:
-If the active tab is clicked, a message is sent to the console and nothing else is done.
-now if you click before the animations finish, the click is ignored.
Merge pull request #2 from josekarlor/javascript-improvement

Improved the tab clicking as follows: