Needed to add d3.js script file for some reason?? Now it works. Might take out the d3 gem.