Update cookie.js

check cookie removed