Javascript to connect an OpenTSDB database and Dygraphs with dynamic loading on zoom.