changes data string to be easily parsed by Javascript
adding visualization component