moved JSON/parsing to test funct. (translator.js)