Changed splitting of words and added jQuery

jQuery is used for showing result on the same page.