ignore case when looking for locale

refer to tolk/tolk
try to fix js error on loading Effect
Merge pull request #2 from rociiu/master

ignore case when looking local