spider.js refactoring, now is ready