added tab javascript