achieve tab by js