moved javascript from nodes index view to nodes.js; sucessfully passing parameter from rails to javascript and displaying viz