angular.module('skjutsgruppen.factories', ['skjutsgruppen.JSONReader'])

.factory('AchievementsFactory', function(JSONReader) {
    return {
        getAchievements: function() {
          return JSONReader.create('data/achievements.json', 'achievements', ['url']);
        }
    }
})

.factory('SettingsFactory', function(JSONReader) {
  return {
    getSettings: function() {
      return JSONReader.create('data/settings.json', 'settings', ['url']);
    },

    updateSetting: function(settingId, newValue) {
      console.log("Someone toggled the notification setting " + settingId + " and set it to " + newValue + "!");
    }
  }
})

.factory('MapFactory', function(JSONReader) {
    return {
        getCoordinates: function() {
            return JSONReader.create('data/mapCoordinates.json', 'coordinates', ['url']);
        }
    }
})

@@ -98,32 +98,33 @@
 ctory', function
+ 
 (JSONReader) %7B%0A 
@@ -160,37 +160,40 @@
 ements: function
+ 
 () %7B%0A
+  
           return
@@ -274,24 +274,25 @@
      %7D%0A    %7D
+;
 %0A%7D)%0A%0A.factor
@@ -312,32 +312,33 @@
 ctory', function
+ 
 (JSONReader) %7B%0A 
@@ -336,16 +336,18 @@
 ader) %7B%0A
+  
   return
@@ -353,16 +353,20 @@
 n %7B%0A    
+  
+  
 getSetti
@@ -379,24 +379,30 @@
 unction() %7B%0A
+      
       return
@@ -472,12 +472,20 @@
     
+  
+  
 %7D,%0A%0A
+    
     
@@ -527,24 +527,30 @@
 newValue) %7B%0A
+      
       consol
@@ -658,13 +658,20 @@
     
-%7D%0A  %7D
+    %7D%0A    %7D;
 %0A%7D)%0A
@@ -702,16 +702,17 @@
 function
+ 
 (JSONRea
@@ -873,12 +873,14 @@
  %7D%0A    %7D
+;
 %0A%7D)
+;
 %0A

Fix jshint warnings, some source formatting