Duplication of workflows doesnt include the setup javascript

When duplicating a workflow. The javascript setup is not duplicated from the original workflow.