google spreadsheet api in javascript with graphs