app.factory("AuthService", function() {
  isAuthenticated = function() {
    console.log("check you");
    return true;
  };
  saveLogin = function(data, status, headers, config) {
    console.log("Saving ... ", data, status, headers, config);
    return true;
  };

  return {
    isAuthenticated: isAuthenticated,
    saveLogin: saveLogin
  };
});
@@ -35,16 +35,20 @@
 n() %7B%0A  
+var 
 isAuthen
@@ -120,17 +120,17 @@
 rue;%0A  %7D
-;
+,
 %0A  saveL

fix global scope pollution