Updated the embedded JavaScript in tabs.c