Create records workflow with Javascript

You don’t need javascript or a plugin. Advanced guide: Creating Recursive Workflows and tracking their progress