Fix remaining javascript errors in due_dates