[languages.js] Messages lists are objects, not arrays

Was querying the server for each language change, which is not needed.