d3 drawing a spectrum from an json object defined in experiments.js.coffee. Now how do I use a json object defined in a variable?