javascript court collection update