updated processor.js