added "document ready" to cookie load