Fallback mechanism added. If the browser does not support localStorage, a cookie will be used to store hidecookiemsg value.