implementing HTML5 storage