Using jquery to cookie browser for event on div