wow, javascript will keep screwing you up if its not a component and you are using the @ symbol…
also, if it is a component, where is the definition of search method?
Also,
Your using the usual inline function onchange() and at the same time listening to the same event below: $$('#iSearch').on('change',function(){alert(2)});not work
i advise you check and show us the console message!