spider.js optimised for better performance; more jsdoc added