find longest word javascript