IAIndex.js - trigger search both on search button click and enter keypress on the input field