Nashorn multithreaded javascript example