Update localFactory.js

added ability to bind a $scope.variable to localStorage :)