killed angular cookies and uses $window now