Adding HTML5 localstorage.