Download the latest version of Cookie JS directly to your PC
Then paste this code at the bottom of your HTML document
<script src="path/to/cookie-js/cookie-js/main/cookie.js"></script>
Copy and paste this code somewhere at the end of your HTML document
<script src="https://cdn.jsdelivr.net/npm/web-cookies-js/main/cookie.min.js" crossorigin="anonymous"></script>
npm i web-cookies-js
Visit the Github repository for Cookie JS