created harvester.js

seperated harvester logic