Update tabshowhide_withvideo.js

documented the function and added some comments for better explanation.