Moved function out of closure
Scrape links from site