Fix for the typeheadOnSelect callback that was never executed.

I found that the callback provided to typehead was never executed, here is the fix.