Trying to get the search word at point function working - test code commented out for now