Refactored TJMaxxSpider code