Evaluate document attachments as nodejs module