fix tabs in js