how to find the longest word in a string with javascript