WIP: js now handling failed jobs