Improved LinkFinder.js and fixed some bugs