
// JSON example
var candidates = [ {
  "name": "Ellie Phanta",
  "party": "Republican",
  "stance1" : -2
  },
  {
  "name": "Jack Bass",
  "party": "Democrat",
  "stance1" : -2
  },
  {
  "name": "Paul Stanton",
  "party": "Libertarian",
  "stance1" : 2
  }
 ]

Questions = [ {
  "Question" : "Should goods and services be provided by force?",
  "Response1" : ["Absolutely",-2],
  "Response2" : ["Yes", -1],
  "Response3" : ["Maybe", 0],
  "Response4" : ["No", 1],
  "Response5" : ["Never", 2]
}
]

@@ -254,16 +254,17 @@
 2%0A  %7D%0A %5D
+;
 %0A%0AQuesti
@@ -354,14 +354,20 @@
 onse
-1
+s
 %22 : %5B
+%0A    %5B
 %22Abs
@@ -386,21 +386,9 @@
 ,%0A  
-%22Response2%22 :
+ 
  %5B%22Y
@@ -403,21 +403,9 @@
 ,%0A  
-%22Response3%22 :
+ 
  %5B%22M
@@ -421,62 +421,493 @@
 ,%0A  
-%22Response4%22 : %5B%22No%22, 1%5D,%0A  %22Response5%22 : %5B%22Never%22, 2%5D%0A%7D%0A%5D
+  %5B%22No%22, 1%5D,%0A    %5B%22Never%22, 2%5D%5D%0A%7D%0A%5D;%0A%0Afunction loadQuestions() %7B%0A  var chunk = '';%0A  for (i = 0; i %3C Questions.length; i++) %7B%0A    chunk += '%3Cp class=%22question%22%3E' + Questions%5Bi%5D.Question + '%3C/p%3E';%0A    chunk += '%3Cp class=%22answers%22%3E%22;%0A    for (j = 0; j %3C Questions%5Bi%5D.Responses.length; j++) %7B%0A     var qr = Questions%5Bi%5D.Responses%5Bj%5D;%0A     chunk += '%3Cbutton onclick=%22tally(' + i + ',' + qr%5B1%5D + ')%22%3E' + qr%5B0%5D + '%3C/button%3E';%0A    %7D%0A    document.getElementById(%22questionArea%22) = chunk;%0A    %0A  %7D%0A%7D
 %0A

Update wme.js