jquery.safegard.js is a modular jquery plugin that save the current state of a form in the local storage to prevent loss of data.