Change tab for javascript