added functionality from the script for tickerAppToJSON directly into the Sinatra request for '/getdata'