word search using js and python