var text = '{"Options":[{"Weight":5,"Price":"5.04"},{"Weight":10,"Price":"9.80"},{"Weight":15,"Price":"11.90"},{"Weight":20,"Price":"16.10"},{"Weight":25,"Price":"20.30"},{"Weight":30,"Price":"24.50"},{"Weight":35,"Price":"28.00"},{"Weight":40,"Price":"30.80"},{"Weight":45,"Price":"33.60"},{"Weight":50,"Price":"35.70"},{"Weight":55,"Price":"39.20"},{"Weight":60,"Price":"40.60"},{"Weight":65,"Price":"44.10"},{"Weight":70,"Price":"48.30"}]}';

obj = JSON.parse(text);
weightOption = 0;

$(document).ready(function() {
    // Slider to select weight
    $( "#slider" ).slider({
        range: "min",
        value: 5,
        min: 5,
        max: 70,
        step: 5,
        slide: function( event, ui ) {
            $( "#weight-value" ).val(ui.value );
            $(this).find('.ui-slider-handle').text(ui.value + "kg");
            weightOption = ui.value / 5 - 1;
        },
        create: function(event, ui) {
           var v=$(this).slider('value');
           $(this).find('.ui-slider-handle').text(v + "kg");
       }
    });

    $("#calculate").click(function() {
        $("#confirmation").hide();

        $("#price-output").show();
        document.getElementById("price").innerHTML = "From $" + obj.Options[weightOption].Price.toFixed(2) + " / week";
        //document.getElementById("age").innerHTML = "";
    });

    $("#preorder").click(function(){
        $("#price-output").fadeOut(1000);
        $("#confirmation").fadeIn(1000);


        var order = document.getElementById("name-tf").value + "," + document.getElementById("email-tf").value + "," + weightOption.toString();
        ga('send', 'event', 'Calculator', 'Confirm Purchase', order, 0, null);
    });


});

@@ -41,14 +41,12 @@
 ce%22:
-%225.04%22
+21.6
 %7D,%7B%22
@@ -68,14 +68,10 @@
 ce%22:
-%229.80%22
+42
 %7D,%7B%22
@@ -93,15 +93,10 @@
 ce%22:
-%2211.90%22
+51
 %7D,%7B%22
@@ -118,15 +118,10 @@
 ce%22:
-%2216.10%22
+69
 %7D,%7B%22
@@ -143,15 +143,10 @@
 ce%22:
-%2220.30%22
+87
 %7D,%7B%22
@@ -168,15 +168,11 @@
 ce%22:
-%2224.50%22
+105
 %7D,%7B%22
@@ -194,15 +194,11 @@
 ce%22:
-%2228.00%22
+120
 %7D,%7B%22
@@ -220,15 +220,11 @@
 ce%22:
-%2230.80%22
+132
 %7D,%7B%22
@@ -246,15 +246,11 @@
 ce%22:
-%2233.60%22
+144
 %7D,%7B%22
@@ -272,15 +272,11 @@
 ce%22:
-%2235.70%22
+153
 %7D,%7B%22
@@ -298,15 +298,11 @@
 ce%22:
-%2239.20%22
+168
 %7D,%7B%22
@@ -324,15 +324,11 @@
 ce%22:
-%2240.60%22
+174
 %7D,%7B%22
@@ -350,15 +350,11 @@
 ce%22:
-%2244.10%22
+189
 %7D,%7B%22
@@ -376,15 +376,11 @@
 ce%22:
-%2248.30%22
+207
 %7D%5D%7D'
@@ -697,77 +697,8 @@
  );%0A
-            $(this).find('.ui-slider-handle').text(ui.value + %22kg%22);%0A
     
@@ -750,152 +750,39 @@
     
-%7D,%0A
     
-    create: function(event, ui) %7B%0A           var v=$(this).slider('value');%0A           $(this).find('.ui-slider-handle').text(v + %22kg%22
+// console.log(ui.value
 );%0A
+ 
     
@@ -901,24 +901,78 @@
 t%22).show();%0A
+        var price = obj.Options%5BweightOption%5D.Price;%0A%0A
         docu
@@ -1027,39 +1027,25 @@
 %22 + 
-obj.Options%5BweightOption%5D.P
+parseFloat(p
 rice
+)
 .toF
@@ -1051,17 +1051,16 @@
 Fixed(2)
- 
 + %22 / we

Fix display and parsing