eBay Interview Question

build a javascript tab