Js dsc defects

fixes dsc-235 and part of dsc-326.
Fixes issues with long running banjo-worker jobs