refactor & split extracter.js

refactor & split extracter.js