Update cookie.js

define param type in deleteFn