Added wrapper for using html5 local storage