Refactored to use different processors (jsdom, node-vm). Added tests. Streamlined API.