Update assignment schedule in JavaScript