a javascript file for click button to switch list (pic or text)