eBay interview question

build a javascript tab