Added cookie jquery function.