add jquery cookie handling.