JavaScript-based tabbed component