alert error function
Using html5 storage to get more speed and get less load from server