Add some js so that there will be interval time in cookie.