Fixed issue with serverside js cookies