store state of collapse to localstorage. separate js to site.js