Create search.js

Search function