get_latest_rates fixed to return the correct array
filtering js array for cheapest and most expensive. Next will be to create js function to generate the chart