Turn on preferPrefixMatches for JS code hints.

Adding this option to string matching provides a fix for #3534 by putting
the matches at the same score and using the scope as a tie breaker.