worktabs js functionality