Changing from using httphandler to js account cookie