Refactor deal_tab to use jQuery.