refatored code, moved to execjs
Refactored, add some tests, depend on execjs
Merge pull request #1 from spilin/refactor

Refactor