mv spider validation to spider.js