Js automate import

enable/disable the cleanup with environment variables.
Also lookup the job via its jobItemID