Use Twig variable instead of blocks to handle pjax and non-pjax js
Fix possible issues with cookie name