script to create cookie