Implemented snippet search feature in UI and receiving search string in Flask

NEXT: implement the search in Flask