in **js/search.js** you may avoid making the "_this" variable; a global variable. so what I can advise you is: var _this = this;
in js/search.js
you may avoid making the "_this" variable; a global variable.
so what I can advise you is:
var _this = this;