[fix] closest JS issue