Fixed some mistakes in search.js, still no luck with 'from is not an object' though