change cookie function
cookie js detect