Also instead of these last 3 lines here, you can call `this.auto_search` in order to re-use that repeated code.  That makes your code easier to read and maintain.