add jquery.cookie and swipe state saved on cookie