Чтобы убедиться, что jQuery доступен, оберните ваш код jQuery в:
(function ($) {
// your Code.
})(jQuery);
Дополнительно вы можете проверить jquery.cookie:
(function ($) {
if (typeof $.cookie != 'undefined'){
var test = ($.cookie('test') === 'true');
}
})(jQuery);