Implemented HTML5 local storage