d3 grid code now working with real data, embedded in results.erb to allow passing of data from sinatra