Added a jquery cookie script loader in old template layout

Fixes #607 - a bug (related to jinja2 move) where the newer templates had the jquery cookie script but the older ones didn't.