do more parallel work in js optimizer