Fix incorrectly assigning selected class to index

I've simply added ^ and $ to the regex fed to the highlights_on option so now
it only highlights exact matches and not partial matches.

[fix #3]