diff --git a/javascript/turfFormatConverter.js b/javascript/turfFormatConverter.js
index 9d73c801099c062058419aabc2c4df2815591b05..422f734fe9aebb67afb8b51f84a395bc3d1b9abd 100644
--- a/javascript/turfFormatConverter.js
+++ b/javascript/turfFormatConverter.js
@@ -17,7 +17,7 @@ function featureCollectionToMultiPolygon(layer) { // Funksjon som gjør om featu
 }
 
 function isMultiPolygon(layer) { // Inneholder 'layer' features som er MultiPolygon?
-    more = false;
+    var more = false;
 
     try { // Justerer i forhold til hvor mye innhold 'layer' har
         if (layer["features"]) {
@@ -65,7 +65,7 @@ function fixMultiPolygons(layer) { // Annen variant som løser MultiPolygon-prob
             features[i]["geometry"]["type"] = "Polygon";
             features[i]["geometry"]["coordinates"] = coord[0];
             for (var j = 1; j < coord.length; j++) {
-                newFeature = {};
+                var newFeature = {};
                 for (key in features[i]) {
                     if (key != "geometry") {
                         newFeature[key] = features[i][key];