Darn javascript application that is supposed to find a word on a given text.