fixed JSList errors and warnings.