update tabs options in javascripts.