Set tabindex in JS code