Remove typos
Use $scope instead of global scope