trimmed down js test