Completing assigned tasks works and with js