code: function createJSCookie (key, value, options = {}) {
    return [
      encodeURIComponent(key), '=', value,
      options.expires
        ? `; expires=${options.expires}`
        : '',
      options.path
        ? `; path=${options.path}`
        : '',
      options.domain
        ? `; domain=${options.domain}`
        : '',
      options.secure
        ? '; secure'
        : ''
    ].join('');
  }
docs: takes arguments given and creates a JavaScript Cookie