Make expiration days variable in the class, and localize it for JS
Refactor JS and set cookies after openning the modal
Remove setting the cookie via PHP because JS is hanlding this now