Try to improve locale-detection.
Try to improve locale-detection.

As noted in the code, the globals[17] array is not entirely reliable with
regard to index-based access.

I've therefore created some helper-functions to asses which sub-array is the
correct one based on its key-value (which consistently has shown up as "ui").

This commit fixes #430.

KartikTalwar/gmail.js