fixed #inputbar js behavior for non-first-word queries