Added location name to the query & JSON encoded the data for AJAX
Added an each block to demonstrate how to plot the results