Fixed langs.js map file. Added tests for getlocale() and setLocale()