introducing json and using embedded ruby and instance variables to plot points using javascript