use load function
using collection streams from javascript with nashorn