changed js to only show last X readings from csv file