cookie behaviour changed for noJs method