update JS

put up cookies