jQuery plugin for storing string / json in local storage / cookie