add ajax support to graph
created api for temp and humidity
configured graph to pull data using ajax calls