added json variables to result.html javascript