Implemented html5 localStorage