Create a Search Component with JavaScript