We have a plugin to access cookies via jquery: $.cookie