Use the the json filter to escape translations in JavaScript