Cookie needs to be redone in js

Checking in working code. Session cannot be declared with ng-cookies