Parse Solr/ElasticSearch synonyms files into JavaScript objects