removed search button, moved search, cleaned index.js