JavaScript judge