Fixes highlighiting in "Smart Search"

Both component and module search results were affected.
jquery.autocomplete.min.js was loded before jQuery
Moved jQuery loading at the top

There are other scripts that needs jQuery
Conditional scripts generation

Apparently a major work, actually a small thing...
Changed variable name from 'a' to 'suggest'
Removed unneeded behavior.core

... and fixed JS indenting (thanks @dgt41)
Removed redundant code
Merge pull request #5439 from smz/SmartSearchResultsHighlight

Fixes highlighiting in "Smart Search" (#5438)