Smart search suggestion script from mootools to jquery. Fixes #5128.