moved "getlinks()" to its own variable..

....close enough..
<ImBcmDth> hans_henrik: looks ok to me but why is the getLinks function an iife? just make is a standalone function and pass it a document!