Fixes bug where case-insensitive searches would return the winning value lower-cased. Fixes #1. Delints per JSHint.