Javascript utility for displaying of cookie warning